]> dgit.raspbian.org Git - gnome-shell.git/commit
Don't rely on implicit type conversion in the scroll view shader
authorNeil Roberts <neil@linux.intel.com>
Thu, 7 Feb 2013 15:55:16 +0000 (15:55 +0000)
committerNeil Roberts <neil@linux.intel.com>
Fri, 8 Feb 2013 12:03:38 +0000 (12:03 +0000)
commit33f69481f7c8e7dc122a71c381d1d4a06229ebe8
tree8c32a8fbdaa3eff2c3db959564faeddaee02b765
parent354fb6b8c6486e618de256be65ee8c7f311c1c14
Don't rely on implicit type conversion in the scroll view shader

Before version 1.2 of GLSL it would not implicitly convert from int to
float which meant that if you compare a float variable with an integer
constant it will generate a compile error. In particular this means
that on GLES2 (which uses GLSL 1.0) the scroll view shader will not
compile on pedantic compilers, which includes Mesa. This patch just
changes it to use floating point constants.

https://bugzilla.gnome.org/show_bug.cgi?id=693339
src/st/st-scroll-view-fade.glsl